<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>管理系统</title>
<!-- Tell the browser to be responsive to screen width -->
<meta
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
	name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet"
	th:href="@{/bower_components/bootstrap/dist/css/bootstrap.min.css}"
	href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet"
	th:href="@{/bower_components/font-awesome/css/font-awesome.min.css}"
	href="/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet"
	th:href="@{/bower_components/Ionicons/css/ionicons.min.css}"
	href="/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" 
	th:href="@{/dist/css/AdminLTE.min.css}"
	href="/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" 
	th:href="@{/dist/css/skins/_all-skins.min.css}"
	href="/dist/css/skins/_all-skins.min.css">
<!-- Google Font -->
<link rel="stylesheet"
	href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<div th:replace="~{admin/templates/header::.main-header}"></div>
		<aside class="main-sidebar"
			th:include="~{admin/templates/aside::.main-sidebar}"
			th:with="onevar='index'"></aside>
		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>关于我们</h1>
				<ol class="breadcrumb">
					<li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
					<li class="active">关于我们</li>
				</ol>
			</section>
			<!-- Main content -->
			<section class="content">
				<div class="row">
					<div class="col-xs-12">
						<div class="box">
							<form th:action="@{'/admin/saveAboutUs/'+${aboutUsInfo.id}}" th:method="post">
								<div class="box-header">
									<h3 class="box-title" th:text="${aboutUsInfo.name}">研究院介绍</h3>
								</div>
								<div class="box-body">
									<div class="form-group">
										<!-- 										<textarea class="form-control" id="editor1" name="content"
											rows="10" cols="80"
											style="visibility: hidden; display: none;"
											th:value="*{content}" th:text="${aboutUsInfo.content}">
                    					</textarea> -->
										<script id="editor" type="text/plain"
											style="width: 100%; height: 500px;" name="content"
											th:utext="${aboutUsInfo.content}"></script>
									</div>
								</div>
								<div class="box-footer">
									<button type="submit" class="btn btn-primary pull-right">保存</button>
								</div>
							</form>
						</div>
						<!-- /.box -->
					</div>
				</div>
			</section>
		</div>
	</div>
	<!-- jQuery 3 -->
	<script th:src="@{/bower_components/jquery/dist/jquery.min.js}" src="/bower_components/jquery/dist/jquery.min.js"></script>
	<!-- Bootstrap 3.3.7 -->
	<script th:src="@{/bower_components/bootstrap/dist/js/bootstrap.min.js}" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
	<!-- FastClick -->
	<script th:src="@{/bower_components/fastclick/lib/fastclick.js}" src="/bower_components/fastclick/lib/fastclick.js"></script>
	<!-- AdminLTE App -->
	<script th:src="@{/dist/js/adminlte.min.js}" src="/dist/js/adminlte.min.js"></script>
	<!-- AdminLTE for demo purposes -->
	<script th:src="@{/dist/js/demo.js}" src="/dist/js/demo.js"></script>
	<script type="text/javascript" charset="utf-8"
		th:src="@{/ueditor/ueditor.config.js}" src="/js/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8"
		th:src="@{/ueditor/ueditor.all.min.js}" src="/js/ueditor.all.min.js">
	</script>
	<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
	<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
	<script type="text/javascript" charset="utf-8"
		th:src="@{/ueditor/lang/zh-cn/zh-cn.js}" src="lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript">
		UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
		UE.Editor.prototype.getActionUrl = function(action) {
			if (action == 'uploadimage' || action == 'uploadscrawl'
					|| action == 'uploadimage') {
				return 'http://www.cdyjy.uestc.edu.cn/ueditor/uploadimage?action=uploadimage';
			} else if (action == 'uploadvideo') {
				return 'http://a.b.com/video.php';
			} else {
				return this._bkGetActionUrl.call(this, action);
			}
		}

		//实例化编辑器
		//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
		var ue = UE.getEditor('editor');
	</script>
</body>
</html>